﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;

namespace DataAccess
{
    public class Tbl_TeacherBus
    {
        LinqUtility<tbl_teacher> context = new LinqUtility<tbl_teacher>();
        public List<tbl_teacher> getListTeacher()
        {
            return context.GetAll();
        }
        public void insertTeacher(tbl_teacher tt)
        {
            context.Insert(tt);
        }
        public void updateTeacher(tbl_teacher tt)
        {
            context.Update(tt);
        }
        public void deleteTeacher(tbl_teacher tt)
        {
            context.Delete(tt);
        }
        
    }
}
